package com.shop.prj.service.impl;

import com.shop.prj.bean.Manager;
import com.shop.prj.dao.Impl.ManagerDaoImpl;
import com.shop.prj.dao.ManagerDao;
import com.shop.prj.service.ManagerService;

import java.util.List;

public class ManagerServiceImpl implements ManagerService {
    ManagerDao managerDao=new ManagerDaoImpl();
    @Override
    public boolean login(Manager manager) {
        return managerDao.login(manager);
    }

    @Override
    public int insert(Manager manager) {
        return managerDao.insert(manager);
    }

    @Override
    public int update(Manager manager) {
        return managerDao.update(manager);
    }

    @Override
    public int delete(Integer id) {
        return managerDao.delete(id);
        }
    

    @Override
    public List<Manager> queryAll() {
        return managerDao.queryAll();
    }


	@Override
	public Manager queryByManageId(Integer managerId) {
		// TODO Auto-generated method stub
		return managerDao.queryByManageId(managerId);
	}

	@Override
	public Manager queryByManage(String name) {
		// TODO Auto-generated method stub
		return managerDao.queryByManage(name);
	}
}
